package com.qinggeng.project.system.mapper;

import java.util.List;
import com.qinggeng.project.system.domain.OrdersAddress;
import org.apache.ibatis.annotations.Param;

/**
 * 订单地址Mapper接口
 * 
 * @author qinggeng
 * @date 2020-06-17
 */
public interface OrdersAddressMapper 
{
    /**
     * 查询订单地址
     * 
     * @param ordersAddressId 订单地址ID
     * @return 订单地址
     */
    public OrdersAddress selectOrdersAddressById(Long ordersAddressId);

    /**
     * 查询订单地址列表
     * 
     * @param ordersAddress 订单地址
     * @return 订单地址集合
     */
    public List<OrdersAddress> selectOrdersAddressList(OrdersAddress ordersAddress);

    /**
     * 新增订单地址
     * 
     * @param ordersAddress 订单地址
     * @return 结果
     */
    public int insertOrdersAddress(OrdersAddress ordersAddress);

    /**
     * 修改订单地址
     * 
     * @param ordersAddress 订单地址
     * @return 结果
     */
    public int updateOrdersAddress(OrdersAddress ordersAddress);

    /**
     * 删除订单地址
     * 
     * @param ordersAddressId 订单地址ID
     * @return 结果
     */
    public int deleteOrdersAddressById(Long ordersAddressId);

    /**
     * 批量删除订单地址
     * 
     * @param ordersAddressIds 需要删除的数据ID
     * @return 结果
     */
    public int deleteOrdersAddressByIds(Long[] ordersAddressIds);

    OrdersAddress selectOrdersAddressByOrdersId(@Param("ordersId") Long ordersId);
}
